import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPetRentHelper } from "./SeqPetRentHelper";
type int = number;
//class SPetRentInfos
    
    export  class SPetRentInfos extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPetRentInfos();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.targetPage);
            arg1.writeInt(this.totalPage);
            SeqPetRentHelper.write(arg1, this.petRents);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.targetPage = arg1.readInt();
            this.totalPage = arg1.readInt();
            this.petRents = SeqPetRentHelper.read(arg1);
            return;
        }

        public /* const */_type: int=12200;

        public /* var */targetPage: int;

        public /* var */totalPage: int;

        public /* var */petRents: Array<any>;

        public static /* var */_regist: SPetRentInfos;
    }

            SPetRentInfos._regist = new SPetRentInfos(true);
        